package com.restaurant.application.accumulate;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.UID;

public class AccumulateDesc extends UnitDescription {
    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(Accumulate.class, "AccumulateData");

        desc.nextBean("AccumulateData")
                .add("customerUID", UID.class)

                .add("createTime", Long.class)
                .add("modifyTime", Long.class)
                // 商品编码（优惠券编码）
                .add("accumulate", Long.class)
                .add("type", String.class)
                .add("detail", UID.class)
                .add("orderId", String.class)
                // 积分描述（兑换了什么物品，消费了多少钱增加了多少）
                .add("action", String.class);


        desc.run("./");
    }
}
